package com.ztgf.shopping.models.vo.shop;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 店铺平台开票VO
 *
 * @author liyang
 * @Date 2021-05-26 12:08:14
 */
@Data
public class ShopSysInvoiceVO implements Serializable {
    @ApiModelProperty(value = "可开票金额")
    private BigDecimal priceAllNot;
    @ApiModelProperty(value = "主键")
    private Long id;
    @ApiModelProperty(value = "创建人")
    private Long createUserId;
    @ApiModelProperty(value = "更新人")
    private Long updateUserId;
    @ApiModelProperty(value = "平台开票表id")
    private Long sysInvoiceId;
    @ApiModelProperty(value = "订单id")
    private Long orderId;
    @ApiModelProperty(value = "订单编号")
    private Long orderNo;
    @ApiModelProperty(value = "类型 0物流费，1佣金，2平台砍价")
    private Integer type;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    @ApiModelProperty(value = "账期")
    private String time;
    @ApiModelProperty(value = "扣费时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date deductTime;
    @ApiModelProperty(value = "费用名称")
    private String name;
    @ApiModelProperty(value = "金额")
    private BigDecimal price;
    // 按月汇总使用
    @ApiModelProperty(value = "总金额")
    private BigDecimal priceAll;
    @ApiModelProperty(value = "已开票")
    private BigDecimal priceAlready;
    @ApiModelProperty(value = "未开票")
    private BigDecimal priceNot;
    @ApiModelProperty(value = "选择开票的ids,以逗号间隔")
    private String invoiceIds;
    @ApiModelProperty(value = "采购信息表id")
    private Long purchaseId;
}
